package com.ssm.service;

import com.ssm.domain.Permission;
import com.ssm.domain.Role;
import com.ssm.domain.UserInfo;

import java.util.List;
import java.util.Map;

public interface IRoleService {

    List<Role> findRoleByUserId(String userId) throws Exception;

    List<Role> findAll() throws Exception;

    void save(Role role) throws Exception;

    void addUserToRole(String[] userId, String roleId)throws Exception;

    Role findByRoleId(String roleId)throws Exception;

    List<UserInfo> findOtherUsers(String roleId);

    void deleteById(String id);

    Map<String,List> findRoleInfoById(String id);
}
